/**
 * 
 */
package com.thor.palmmall.rest.process;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.thor.commons.exception.ThorServiceException;

/**
 * @author NuoSa
 *
 * @since 1.0
 */
@Path("/process")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface AProcessService {

  @POST
  @Path("/allStartProcesses")
  List<String> getAllProcesses(AProcessParam processParam) throws ThorServiceException;
  
  @POST
  @Path("/attention")
  void saveUserAttentionProcess(AProcess process) throws ThorServiceException;
  
  @GET
  @Path("/{userId}/allAttentionProcess")
  AProcessAttentions getAllAttentionProcess(@PathParam("userId")String userId) throws ThorServiceException;

}
